Game stat generator

A. Important files
1. Extract games.bat
2. Ordo rating.bat
3. pgn-extract-17-14
4. p-p.txt
5. qrbnp-qrbnp.txt
6. rp-bnp.txt
7. rp-rp.txt
8. ordo-win64.exe

A.1 Extract games.bat file is a file that calls pgn-extract using p-p.txt, rp-rp.txt and others to extract
games depending on the .txt file. If you open this for example it has the following commands

pgn-extract-17-14 -s -zrp-bnp.txt -ofct-11550-rp-bnp.pgn fct1-11550.pgn

The fct1-11550.pgn at the end is the source or your database file.
The -ofct-11550-rp-bnp.pgn is the output pgn games, this will contain the games with rp-bnp games.
The output filename is fct-11550-rp-bnp.pgn. The -o is just the command line argument for pgn-extract.
The -zrp-bnp.txt is a file argument by pgn-extract. The actual file is rp-bnp.txt. The -z is by pgn-extract
argument.
The -s is for silent mode by pgn-extract.


A.2 Ordo rating.bat is used to generate rating based on the extracted games in A.1, so Extract games.bat
should be run first, before Ordo rating.bat

A.4 The p-p.txt file is used to extract games where there are pawn vs pawn materials. 
If you open the text file you will see.

60 p+ p+

The 60 here refers to number of plies that p vs p is played. 60 plies is equivalent to 30 moves.
To generate more games, it is possible to reduce the 60 to 40, meaning the p vs p material
can be seen for 20 moves in the extracted games.


B. Basic requirement
1. Windows OS
2. In the example Extract games.bat, you need to rename your database games to fct1-11550.pgn.


C. When the batch files are run, the old output pgn and rating.txt files will be overwritten.


